<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Login extends CI_Controller {

	
	public function index($id='')
	{
		// $this->load->database();

		// $query = $this->db->query('SELECT * FROM fly_user');

		// var_dump($query->result());

		// foreach ($query->result() as $row)
		// {
		//     echo $row->nickname;
		//     echo $row->email;
		//     echo $row->face;
		// }

		// $query = $this->db->order_by('user_id', 'DESC')->get('fly_user',3,4);

		// var_dump($query->result());
		// 
		var_dump($this->config->item('index_page'));

		// config('phone.id')


		$this->config->load('wx');

		var_dump($this->config->item('app_id'));

		$this->load->model('User_model');

		$data = $this->User_model->get_hot_user();

		$this->load->view('header');

		$this->load->view('login/test',['user'=>$data]);
	}
}
